import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import request from './utils/request'

//全局引用element UI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 全局引入echarts
import echarts from './echarts/index';
Vue.use(ElementUI)

Vue.config.productionTip = false

//获取实例上的方法 便于直接使用
Vue.prototype.$request = request;
Vue.prototype.$echarts = echarts;

//校验用户token

new Vue({
  router,
  store,

  render: h => h(App),
}).$mount('#app')
